<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>修改友链</title>
	<link rel="stylesheet" href="__PUBLIC__/Css/public.css" />
	<link rel="stylesheet" href="__STATIC__/hdjs/hdjs.css" />
</head>
<body>
	<form action="{|U:'Flink/edit'}" method="post" enctype="multipart/form-data">
	<?php foreach ($curData as $k => $v): ?>
			<table class="hd-table hd-table-list">
				<tr>
					<td align="right">链接名称：</td>
					<td><input type="text" name="fname" value="<?php echo $v['fname']?>"></td>
				</tr>
				<tr>
					<td align="right">摘要(描述)：</td>
					<td><textarea name="msg" id="" cols="80" rows="3" ><?php echo $v['msg']?></textarea></td>
				</tr>
				<tr>
					<td align="right">排序:</td>
					<td><input type="text" name="sort" value="<?php echo $v['sort']?>"></td>
				</tr>
				<tr>

					<td align="right">链接logo:</td>	
					<td><input type="hidden" name='logo' value="<?php echo $v['logo']?>"><img src="__ROOT__/<?php echo $v['logo'];?>" alt="" /><input type="file" name="logo2"></td>
				</tr>
				<tr>
					<td align="right">链接网址:</td>	
					<td><input type="text" name="url" value="<?php echo $v['url']?>"></td>
				</tr>
				<tr>
					<td align="right">是否显示:</td>	
					<td>
						<input type="radio" name="is_show" value="1" <?php if($v['is_show']==1){echo "checked=''";}?>>是
						<input type="radio" name="is_show" value="0" <?php if($v['is_show']==0){echo "checked=''";}?>>否
					</td>
				</tr>
				<tr>
					<input type="hidden" name="fid" value="<?php echo $v['fid'];?>">
					<td colspan='2' align="center"><input type="submit" value="提交" class="hd-btn hd-btn-primary hd-btn-sm"></td>
				</tr>
			</table>
		<?php endforeach ?>
	</form>
</body>
</html>